<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ExpoNewsTypeList.aspx.cs"
    Inherits="admin_Expo_ExpoNewsTypeList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>展会资讯分类管理</title>
    <link rel="stylesheet" href="../skin/style.css" type="text/css" />
    <script type="text/javascript" src="../../js/jquery.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="itemtitle">
            添加分类</div>
        <div class="itemtitle_tect">
            <p>
                类别名称：<asp:TextBox ID="txtExpoNewsType" runat="server" Width="200"></asp:TextBox><asp:Button
                    ID="btnSave" runat="server" Text="添加分类" OnClick="btnSave_Click" CssClass="i_button" /></p>
        </div>
        <div class="clr">
        </div>
        <div class="talbe_border">
            <asp:DataList ID="dlstExpoNewsType" runat="server" OnCancelCommand="dlstExpoType_CancelCommand"
                OnDeleteCommand="dlstExpoType_DeleteCommand" OnEditCommand="dlstExpoType_EditCommand"
                OnUpdateCommand="dlstExpoType_UpdateCommand" RepeatColumns="4" DataKeyField="ID"
                Width="100%" CssClass="talbe_list">
                <HeaderStyle CssClass="noya" />
                <HeaderTemplate>
                    <div class="head_ling">
                        展会资讯分类管理</div>
                </HeaderTemplate>
                <ItemTemplate>
                    <%# DataBinder.Eval(Container.DataItem, "Type")%>
                    〖<asp:LinkButton runat="server" CommandName="edit" ID="lbtnEdit">编辑</asp:LinkButton>
                    <asp:LinkButton ID="lbtnDelete" runat="server" Text="删除" CommandName="delete" OnClientClick="return confirm('你确定要删除吗?')"></asp:LinkButton>〗
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="txtType" runat="server" Text='<%# Eval("Type")%>' Width="80"></asp:TextBox>
                    <asp:LinkButton runat="server" CommandName="update" ID="btnUpdate">更新</asp:LinkButton>
                    <asp:LinkButton runat="server" CommandName="cancel" ID="btnCancel">取消</asp:LinkButton>
                </EditItemTemplate>
            </asp:DataList>
        </div>
    </form>

    <script type="text/javascript" src="../js/ExpoNewsTypeList.js"></script>

</body>
</html>
